package org.jeecg.tender.keywordsExtraction.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tender_information_extractor")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tender_information_extractor对象", description="tender_information_extractor")
public class TenderInformationExtractor implements Serializable {

    /**主键id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "招标信息表tender_information主键Id")
    private Integer tenderInformationId;

    @ApiModelProperty(value = "附件表sys_attachment主键Id")
    private Integer sysAttachmentId;

    @ApiModelProperty(value = "招标详情类型;txt,html,image")
    private String informationDataType;

    @ApiModelProperty(value = "公告类型")
    private String noticeType;

    @ApiModelProperty(value = "公告标题")
    private String noticeTitle;

    @ApiModelProperty(value = "采购方机构名称")
    private String purchaser;

    @ApiModelProperty(value = "中标单位")
    private String supplier;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "项目编号")
    private String projectCode;

    @ApiModelProperty(value = "含税金额")
    private String amountWithTax;

    @ApiModelProperty(value = "不含税金额")
    private String amountWithoutTax;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    @ApiModelProperty(value = "公告链接")
    private String noticeUrl;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "最后修改时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
